package cn.cloudtogo.staros.demo.droctopusspring.workflowengine;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.reactive.function.client.WebClient;

@Configuration(proxyBeanMethods = false)
public class WorkflowEngineWebClientConfiguration {


    @Bean
    public WebClient flowEngineWebClient(WorkflowEngineProperties properties) {
        return WebClient.builder()
                .baseUrl(properties.getUrl())
                .build();
    }

}
